// 增强路径处理能力
export function resolveRoutePath(relativePath, parentPath = '') {
  if (relativePath.startsWith('/')) return relativePath
  const cleanParent = parentPath.replace(/\/$/, '') // 去除结尾斜杠
  return [cleanParent, relativePath]
    .filter(Boolean)
    .join('/')
    .replace(/\/+/g, '/')
}